package cn.yunhe.action;

import cn.yunhe.entity.Book;
import cn.yunhe.service.BookService;
import cn.yunhe.util.BaseAction;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/4/13.
 */
public class QuerybookAction extends BaseAction {

    public String execute()  {
        List<Book> list=new ArrayList<Book>();
        BookService bookService=new BookService();
        Book book=new Book();
        list=bookService.getAllBook(book);
        getSession().setAttribute("list",list);
        return SUCCESS;
    }
}
